<?php  
/* 
Template Name: Page Hinh Anh
*/
?><?php get_header();?>
<div class="cy-content">
	<?php get_sidebar();?>
    <div class="cy-content-center">
    <?php locate_template('block/block-search.php', true); ?>
    <div class="cy-content-title">
    <h2><?php the_title();?></h2>
    </div><!--cy-content-title-->
    <div id="gallery">
    <ul>
    <?php
	$loop = new WP_Query(array('post_type'=>'thu_vien_anh','posts_per_page'=>12,'orderby'=>'ASC','paged' => $paged));
	?>
	<?php while ( $loop->have_posts() ) : $loop->the_post(); //bat dau vong lap ?>
    <li>
        <a href="<?php echo get('hinh_lon');?>" title="<?php the_title();?>">
                <img src="<?php echo get('hinh');?>" width="72" height="72" alt="" />
        </a>
        <div class="cy-title-hinhanh"><?php the_title(); ?></div>
    </li>
  <?php endwhile; //ket thuc vong lap ?>
     <?php wp_reset_query();?>
      </ul>
    </div><!--cy-content-center--> 
   
</div><!--cy-content-->
<?php get_footer(); ?>